home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_bab_wpntpatrol.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  89 lines

  1. # Jones 3D Cog Script
  2. #
  3. # xxx_Test.cog
  4. #
  5. # [MDR]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ========================================================================================
  10. symbols
  11.  
  12. message        startup
  13. message        entered
  14. message        arrivedwpnt
  15.  
  16. # ************************** MISC LINKED GEOM ******************
  17. thing        t_Ghost0
  18. thing        t_Ghost1
  19. thing        t_Ghost2
  20. thing        t_Ghost3
  21.  
  22. thing        t_Commie
  23.  
  24. sector        sec_Trigger
  25.  
  26. # ************************** MISC LOCAL VARS *******************
  27. thing        t_player                    local
  28. int            n_pos=0                        local
  29. int            n_crntWpnt                    local
  30. int            n_nextWpnt                    local
  31.  
  32. end
  33.  
  34. # ========================================================================================
  35. code
  36.  
  37.  
  38. # .................................................................................    
  39. startup:
  40.  
  41.     t_player=GetLocalPlayerThing();
  42.  
  43.     return;
  44.  
  45.  
  46. # .................................................................................    
  47. arrivedwpnt:
  48.  
  49.     n_crntWpnt = GetParam(0);
  50.     n_nextWpnt = GetParam(1);
  51.  
  52.     //if ( (n_crntWpnt==0 && n_nextWpnt==1) || (n_crntWpnt==3 && n_nextWpnt==2) )
  53.     //{
  54.     //    SetActorFlags(t_Commie, 0x800);            # 0x800 = BLIND
  55.     //}
  56.  
  57.     //if ( (n_crntWpnt==1 && n_nextWpnt==0) || (n_crntWpnt==2 && n_nextWpnt==3) )
  58.     //{
  59.     //    ClearActorFlags(t_Commie, 0x800);
  60.     //}
  61.     
  62. return;
  63.  
  64. # .................................................................................    
  65. entered:
  66.  
  67.     if (GetSenderRef() == sec_Trigger)
  68.     {
  69.         for ( n_pos = 0; n_pos < 4; n_pos = n_pos + 1 )
  70.         {
  71.             AISetWpnt(t_Ghost0[n_pos], n_pos);
  72.         }
  73.  
  74.         AIConnectWpnts(0, 1);
  75.         AIConnectWpnts(1, 2);
  76.         AIConnectWpnts(2, 3);
  77.         AIConnectWpnts(3, 0);
  78.  
  79.         //SetActorFlags(t_Commie, 0x400);        # 0x400 = DEAF
  80.  
  81.         AITraverseWpnts(t_Commie, 0, 1.0, 20.0, 1);
  82.     }
  83.  
  84.     return;
  85.  
  86. # .................................................................................    
  87.  
  88. end
  89.